/**
 * 婚礼管理常量定义
 */

// ==================== 婚纱状态 ====================
export const DRESS_STATUS = {
  AVAILABLE: 'AVAILABLE',
  RESERVED: 'RESERVED',
  RENTED: 'RENTED',
  MAINTENANCE: 'MAINTENANCE',
  RETIRED: 'RETIRED',
} as const;

export const DRESS_STATUS_LABELS = {
  [DRESS_STATUS.AVAILABLE]: '可用',
  [DRESS_STATUS.RESERVED]: '已预约',
  [DRESS_STATUS.RENTED]: '已租出',
  [DRESS_STATUS.MAINTENANCE]: '维护中',
  [DRESS_STATUS.RETIRED]: '已下架',
} as const;

export const DRESS_STATUS_COLORS = {
  [DRESS_STATUS.AVAILABLE]: 'success',
  [DRESS_STATUS.RESERVED]: 'warning',
  [DRESS_STATUS.RENTED]: 'processing',
  [DRESS_STATUS.MAINTENANCE]: 'default',
  [DRESS_STATUS.RETIRED]: 'error',
} as const;

// ==================== 服务状态 ====================
export const SERVICE_STATUS = {
  AVAILABLE: 'AVAILABLE',
  BUSY: 'BUSY',
  BOOKED: 'BOOKED',
  OFF_DUTY: 'OFF_DUTY',
} as const;

export const SERVICE_STATUS_LABELS = {
  [SERVICE_STATUS.AVAILABLE]: '可预约',
  [SERVICE_STATUS.BUSY]: '服务中',
  [SERVICE_STATUS.BOOKED]: '已预约',
  [SERVICE_STATUS.OFF_DUTY]: '休息中',
} as const;

export const SERVICE_STATUS_COLORS = {
  [SERVICE_STATUS.AVAILABLE]: 'success',
  [SERVICE_STATUS.BUSY]: 'processing',
  [SERVICE_STATUS.BOOKED]: 'warning',
  [SERVICE_STATUS.OFF_DUTY]: 'default',
} as const;

// ==================== 订单状态 ====================
export const ORDER_STATUS = {
  DRAFT: 'DRAFT',
  CONFIRMED: 'CONFIRMED',
  PAID: 'PAID',
  IN_PROGRESS: 'IN_PROGRESS',
  COMPLETED: 'COMPLETED',
  CANCELLED: 'CANCELLED',
} as const;

export const ORDER_STATUS_LABELS = {
  [ORDER_STATUS.DRAFT]: '草稿',
  [ORDER_STATUS.CONFIRMED]: '已确认',
  [ORDER_STATUS.PAID]: '已支付',
  [ORDER_STATUS.IN_PROGRESS]: '进行中',
  [ORDER_STATUS.COMPLETED]: '已完成',
  [ORDER_STATUS.CANCELLED]: '已取消',
} as const;

export const ORDER_STATUS_COLORS = {
  [ORDER_STATUS.DRAFT]: 'default',
  [ORDER_STATUS.CONFIRMED]: 'processing',
  [ORDER_STATUS.PAID]: 'success',
  [ORDER_STATUS.IN_PROGRESS]: 'warning',
  [ORDER_STATUS.COMPLETED]: 'success',
  [ORDER_STATUS.CANCELLED]: 'error',
} as const;

// ==================== 婚纱类别 ====================
export const DRESS_CATEGORIES = [
  { value: 'WEDDING', label: '婚纱' },
  { value: 'EVENING', label: '晚礼服' },
  { value: 'CUSTOM', label: '定制款' },
  { value: 'BRIDESMAID', label: '伴娘服' },
] as const;

// ==================== 服务等级 ====================
export const SERVICE_LEVELS = [
  { value: 'JUNIOR', label: '初级', price: 500 },
  { value: 'SENIOR', label: '高级', price: 1000 },
  { value: 'MASTER', label: '首席', price: 2000 },
  { value: 'CHIEF', label: '总监', price: 3000 },
] as const;

// ==================== 服务类型 ====================
export const SERVICE_TYPES = [
  { value: 'DRESS', label: '婚纱', icon: 'mdi:hanger' },
  { value: 'MAKEUP', label: '化妆', icon: 'mdi:palette' },
  { value: 'PHOTOGRAPHY', label: '摄影', icon: 'mdi:camera' },
  { value: 'PACKAGE', label: '套餐', icon: 'mdi:package-variant' },
] as const;

// ==================== 尺码 ====================
export const DRESS_SIZES = ['XS', 'S', 'M', 'L', 'XL', 'XXL', 'XXXL', '均码'] as const;

// ==================== 颜色 ====================
export const DRESS_COLORS = [
  '白色',
  '象牙白',
  '香槟色',
  '粉色',
  '红色',
  '金色',
  '银色',
  '蓝色',
  '紫色',
  '其他',
] as const;

// ==================== 风格 ====================
export const DRESS_STYLES = [
  '简约现代',
  '复古宫廷',
  '浪漫唯美',
  '性感时尚',
  '优雅大方',
  '田园清新',
  '中式传统',
  '韩式清新',
  '欧式华丽',
  '其他',
] as const;

// ==================== 化妆擅长领域 ====================
export const MAKEUP_SPECIALTIES = [
  '新娘妆',
  '晚宴妆',
  '韩式妆容',
  '复古妆容',
  '时尚妆容',
  '创意妆容',
] as const;

// ==================== 摄影擅长风格 ====================
export const PHOTOGRAPHY_STYLES = [
  '婚纱摄影',
  '纪实摄影',
  '艺术摄影',
  '韩式摄影',
  '复古摄影',
  '时尚摄影',
  '旅拍摄影',
  '创意摄影',
] as const;

// ==================== 性别 ====================
export const GENDERS = [
  { value: '男', label: '男' },
  { value: '女', label: '女' },
] as const;

// ==================== 支付方式 ====================
export const PAYMENT_METHODS = [
  { value: 'CASH', label: '现金' },
  { value: 'WECHAT', label: '微信支付' },
  { value: 'ALIPAY', label: '支付宝' },
  { value: 'BANK_CARD', label: '银行卡' },
  { value: 'OTHER', label: '其他' },
] as const;

// ==================== 默认值 ====================
export const DEFAULT_PAGE_SIZE = 10;
export const DEFAULT_RENTAL_DAYS = 3;
export const DEFAULT_PHOTO_COUNT = 100;
export const DEFAULT_RETOUCH_COUNT = 30;
export const MAX_UPLOAD_SIZE = 5 * 1024 * 1024; // 5MB
export const MAX_IMAGE_COUNT = 10;

// ==================== 业务规则 ====================
export const BUSINESS_RULES = {
  // 最小租赁天数
  MIN_RENTAL_DAYS: 1,
  // 最大租赁天数
  MAX_RENTAL_DAYS: 30,
  // 提前预约天数
  ADVANCE_BOOKING_DAYS: 7,
  // 订单有效期（天）
  ORDER_VALIDITY_DAYS: 30,
  // 最低服务价格
  MIN_SERVICE_PRICE: 100,
  // 最高服务价格
  MAX_SERVICE_PRICE: 10000,
} as const;

